Some indentation fixes and minor cleanup
authorMichael Natterer <mitch@gimp.org>
Wed, 8 Jul 2009 14:37:29 +0000 (16:37 +0200)
committerMichael Natterer <mitch@gimp.org>
Wed, 8 Jul 2009 14:37:29 +0000 (16:37 +0200)
gtk/gtkhbbox.c
gtk/gtkvbbox.c

index d852daf0a277828ce04c0cb55dc5f0505e35822d..ea9c1f843b3017064e555eca586c0333a7e3ddbb 100644 (file)
@@ -21,7 +21,7 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
 #include "config.h"
@@ -44,24 +44,20 @@ gtk_hbutton_box_class_init (GtkHButtonBoxClass *class)
 static void
 gtk_hbutton_box_init (GtkHButtonBox *hbutton_box)
 {
-       gtk_orientable_set_orientation (GTK_ORIENTABLE (hbutton_box),
-                       GTK_ORIENTATION_HORIZONTAL);
+  gtk_orientable_set_orientation (GTK_ORIENTABLE (hbutton_box),
+                                  GTK_ORIENTATION_HORIZONTAL);
 }
 
-GtkWidget*
+GtkWidget *
 gtk_hbutton_box_new (void)
 {
-  GtkHButtonBox *hbutton_box;
-
-  hbutton_box = g_object_new (GTK_TYPE_HBUTTON_BOX, NULL);
-
-  return GTK_WIDGET (hbutton_box);
+  return g_object_new (GTK_TYPE_HBUTTON_BOX, NULL);
 }
 
 
 /* set default value for spacing */
 
-void 
+void
 gtk_hbutton_box_set_spacing_default (gint spacing)
 {
   default_spacing = spacing;
@@ -70,7 +66,7 @@ gtk_hbutton_box_set_spacing_default (gint spacing)
 
 /* set default value for layout style */
 
-void 
+void
 gtk_hbutton_box_set_layout_default (GtkButtonBoxStyle layout)
 {
   g_return_if_fail (layout >= GTK_BUTTONBOX_DEFAULT_STYLE &&
@@ -81,7 +77,7 @@ gtk_hbutton_box_set_layout_default (GtkButtonBoxStyle layout)
 
 /* get default value for spacing */
 
-gint 
+gint
 gtk_hbutton_box_get_spacing_default (void)
 {
   return default_spacing;
index 5198e46a30ca9c74dbd4ee218e88c7fe10153741..0f9262171e177f9e4250500031a826b62bef9d1b 100644 (file)
@@ -21,7 +21,7 @@
  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GTK+ Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
 #include "config.h"
@@ -45,17 +45,13 @@ static void
 gtk_vbutton_box_init (GtkVButtonBox *vbutton_box)
 {
   gtk_orientable_set_orientation (GTK_ORIENTABLE (vbutton_box),
-                 GTK_ORIENTATION_VERTICAL);
+                                  GTK_ORIENTATION_VERTICAL);
 }
 
-GtkWidget*
+GtkWidget *
 gtk_vbutton_box_new (void)
 {
-  GtkVButtonBox *vbutton_box;
-
-  vbutton_box = g_object_new (GTK_TYPE_VBUTTON_BOX, NULL);
-
-  return GTK_WIDGET (vbutton_box);
+  return g_object_new (GTK_TYPE_VBUTTON_BOX, NULL);
 }